
racks="rack1 rack2 rack3"
for rack in $racks
do
   ceph osd crush add-bucket $rack rack
   ceph osd crush move $rack root=default
done

ceph osd crush move zettakit01 root=default rack=rack1
ceph osd crush move zettakit02 root=default rack=rack1
ceph osd crush move zettakit03 root=default rack=rack2
ceph osd crush move zettakit04 root=default rack=rack2
ceph osd crush move zettakit05 root=default rack=rack3
ceph osd crush move zettakit06 root=default rack=rack3


racks="rack1-ssd rack2-ssd rack3-ssd"
for rack in $racks
do
   ceph osd crush add-bucket $rack rack
   ceph osd crush move $rack root=ssd_root
done

hosts="zettakit01-ssd zettakit02-ssd zettakit03-ssd zettakit04-ssd zettakit05-ssd zettakit06-ssd"
for host in  $hosts
do
    ceph osd crush add-bucket $host host
done


ceph osd crush move zettakit01-ssd root=ssd_root rack=rack1-ssd
ceph osd crush move zettakit02-ssd root=ssd_root rack=rack1-ssd

ceph osd crush move zettakit03-ssd root=ssd_root rack=rack2-ssd
ceph osd crush move zettakit04-ssd root=ssd_root rack=rack2-ssd

ceph osd crush move zettakit05-ssd root=ssd_root rack=rack3-ssd
ceph osd crush move zettakit06-ssd root=ssd_root rack=rack3-ssd


ceph osd crush create-or-move  osd.60 1.0 root=ssd_root  rack=rack1-ssd host=zettakit01-ssd
ceph osd crush create-or-move  osd.61 1.0 root=ssd_root  rack=rack1-ssd host=zettakit01-ssd

ceph osd crush create-or-move  osd.62 1.0 root=ssd_root  rack=rack1-ssd host=zettakit02-ssd
ceph osd crush create-or-move  osd.63 1.0 root=ssd_root  rack=rack1-ssd host=zettakit02-ssd

ceph osd crush create-or-move  osd.64 1.0 root=ssd_root  rack=rack2-ssd host=zettakit03-ssd
ceph osd crush create-or-move  osd.65 1.0 root=ssd_root  rack=rack2-ssd host=zettakit03-ssd

ceph osd crush create-or-move  osd.66 1.0 root=ssd_root  rack=rack2-ssd host=zettakit04-ssd
ceph osd crush create-or-move  osd.67 1.0 root=ssd_root  rack=rack2-ssd host=zettakit04-ssd

ceph osd crush create-or-move  osd.68 1.0 root=ssd_root  rack=rack3-ssd host=zettakit05-ssd
ceph osd crush create-or-move  osd.69 1.0 root=ssd_root  rack=rack3-ssd host=zettakit05-ssd

ceph osd crush create-or-move  osd.70 1.0 root=ssd_root  rack=rack3-ssd host=zettakit06-ssd
ceph osd crush create-or-move  osd.71 1.0 root=ssd_root  rack=rack3-ssd host=zettakit06-ssd




